package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品出库对象 product_stock_out
 *
 * @author ruoyi
 * @date 2025-05-30
 */
public class ProductStockOut extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 创建开始时间，记录创建出库单的起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建开始时间，记录创建出库单的起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createStartTime;

    /** 创建结束时间，记录创建出库单的结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建结束时间，记录创建出库单的结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createEndTime;

    /** 出库开始时间，记录实际开始出库操作的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库开始时间，记录实际开始出库操作的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stockOutStartTime;

    /** 出库结束时间，记录实际完成出库操作的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库结束时间，记录实际完成出库操作的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stockOutEndTime;

    /** 仓库名称，记录出库操作发生的仓库 */
    @Excel(name = "仓库名称，记录出库操作发生的仓库")
    private String warehouseName;

    /** 出库单号，唯一标识一次出库操作 */
    @Excel(name = "出库单号，唯一标识一次出库操作")
    private String stockOutNumber;

    /** 出库类型，例如：销售出库、调拨出库等 */
    @Excel(name = "出库类型，例如：销售出库、调拨出库等")
    private String stockOutType;

    /** 出库员工，记录执行出库操作的员工姓名或ID */
    @Excel(name = "出库员工，记录执行出库操作的员工姓名或ID")
    private String stockOutEmployee;

    /** 创建员工，记录创建出库单的员工姓名或ID */
    @Excel(name = "创建员工，记录创建出库单的员工姓名或ID")
    private String createEmployee;

    /** 序号，用于排序或标识出库单中的商品顺序 */
    @Excel(name = "序号，用于排序或标识出库单中的商品顺序")
    private Long serialNumber;

    /** 类别，用于区分商品、配品、原料等 */
    @Excel(name = "类别，用于区分商品、配品、原料等")
    private String category;

    /** 分类，用于进一步细分商品类别 */
    @Excel(name = "分类，用于进一步细分商品类别")
    private String subcategory;

    /** 商品名称，记录出库商品的名称 */
    @Excel(name = "商品名称，记录出库商品的名称")
    private String productName;

    /** 规格，描述出库商品的规格信息 */
    @Excel(name = "规格，描述出库商品的规格信息")
    private String specification;

    /** 库存单价，记录出库时该商品的库存单价 */
    @Excel(name = "库存单价，记录出库时该商品的库存单价")
    private BigDecimal inventoryUnitPrice;

    /** 库存数量，记录出库前该商品在仓库中的库存数量（可选，根据实际需求决定是否需要） */
    @Excel(name = "库存数量，记录出库前该商品在仓库中的库存数量", readConverterExp = "可=选，根据实际需求决定是否需要")
    private Long existingInventory;

    /** 出库数量，记录本次出库的商品数量 */
    @Excel(name = "出库数量，记录本次出库的商品数量")
    private Long stockOutQuantity;

    /** 总值，记录本次出库商品的总价值（出库数量 * 库存单价） */
    @Excel(name = "总值，记录本次出库商品的总价值", readConverterExp = "出=库数量,*=,库=存单价")
    private BigDecimal totalValue;

    /** 备注，记录出库操作的额外说明或特殊情况 */
    @Excel(name = "备注，记录出库操作的额外说明或特殊情况")
    private String notes;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setCreateStartTime(Date createStartTime)
    {
        this.createStartTime = createStartTime;
    }

    public Date getCreateStartTime()
    {
        return createStartTime;
    }

    public void setCreateEndTime(Date createEndTime)
    {
        this.createEndTime = createEndTime;
    }

    public Date getCreateEndTime()
    {
        return createEndTime;
    }

    public void setStockOutStartTime(Date stockOutStartTime)
    {
        this.stockOutStartTime = stockOutStartTime;
    }

    public Date getStockOutStartTime()
    {
        return stockOutStartTime;
    }

    public void setStockOutEndTime(Date stockOutEndTime)
    {
        this.stockOutEndTime = stockOutEndTime;
    }

    public Date getStockOutEndTime()
    {
        return stockOutEndTime;
    }

    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }

    public void setStockOutNumber(String stockOutNumber)
    {
        this.stockOutNumber = stockOutNumber;
    }

    public String getStockOutNumber()
    {
        return stockOutNumber;
    }

    public void setStockOutType(String stockOutType)
    {
        this.stockOutType = stockOutType;
    }

    public String getStockOutType()
    {
        return stockOutType;
    }

    public void setStockOutEmployee(String stockOutEmployee)
    {
        this.stockOutEmployee = stockOutEmployee;
    }

    public String getStockOutEmployee()
    {
        return stockOutEmployee;
    }

    public void setCreateEmployee(String createEmployee)
    {
        this.createEmployee = createEmployee;
    }

    public String getCreateEmployee()
    {
        return createEmployee;
    }

    public void setSerialNumber(Long serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public Long getSerialNumber()
    {
        return serialNumber;
    }

    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getCategory()
    {
        return category;
    }

    public void setSubcategory(String subcategory)
    {
        this.subcategory = subcategory;
    }

    public String getSubcategory()
    {
        return subcategory;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setSpecification(String specification)
    {
        this.specification = specification;
    }

    public String getSpecification()
    {
        return specification;
    }

    public void setInventoryUnitPrice(BigDecimal inventoryUnitPrice)
    {
        this.inventoryUnitPrice = inventoryUnitPrice;
    }

    public BigDecimal getInventoryUnitPrice()
    {
        return inventoryUnitPrice;
    }

    public void setExistingInventory(Long existingInventory)
    {
        this.existingInventory = existingInventory;
    }

    public Long getExistingInventory()
    {
        return existingInventory;
    }

    public void setStockOutQuantity(Long stockOutQuantity)
    {
        this.stockOutQuantity = stockOutQuantity;
    }

    public Long getStockOutQuantity()
    {
        return stockOutQuantity;
    }

    public void setTotalValue(BigDecimal totalValue)
    {
        this.totalValue = totalValue;
    }

    public BigDecimal getTotalValue()
    {
        return totalValue;
    }

    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes()
    {
        return notes;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createStartTime", getCreateStartTime())
                .append("createEndTime", getCreateEndTime())
                .append("stockOutStartTime", getStockOutStartTime())
                .append("stockOutEndTime", getStockOutEndTime())
                .append("warehouseName", getWarehouseName())
                .append("stockOutNumber", getStockOutNumber())
                .append("stockOutType", getStockOutType())
                .append("stockOutEmployee", getStockOutEmployee())
                .append("createEmployee", getCreateEmployee())
                .append("serialNumber", getSerialNumber())
                .append("category", getCategory())
                .append("subcategory", getSubcategory())
                .append("productName", getProductName())
                .append("specification", getSpecification())
                .append("inventoryUnitPrice", getInventoryUnitPrice())
                .append("existingInventory", getExistingInventory())
                .append("stockOutQuantity", getStockOutQuantity())
                .append("totalValue", getTotalValue())
                .append("notes", getNotes())
                .append("phone", getPhone())
                .toString();
    }
}
